<?php

// +----------------------------------------------------------------------
// | EasyAdmin
// +----------------------------------------------------------------------
// | PHP交流群: 763822524
// +----------------------------------------------------------------------
// | 开源协议  https://mit-license.org 
// +----------------------------------------------------------------------
// | github开源项目：https://github.com/zhongshaofa/EasyAdmin
// +----------------------------------------------------------------------

namespace app\admin\model;


use app\common\model\TimeModel;

class MallOrder extends TimeModel
{

    //protected $deleteTime = 'delete_time';
     protected $table = "ea_mall_order";

     protected $autoWriteTimestamp = true;

     protected $createTime = 'create_at';
 
     public function getCreateAtAttr($value)
     {
         return date($value);
     }

     public function cate()
     {
         return $this->belongsTo('app\admin\model\MallOrder', 'id', 'id');
     }
}